﻿
@model RTW.OA.Models.official_document_receive
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Sign", "Receive", FormMethod.Post, new { area = "Document", id = "form", name = "form" }))
                {
                    @Html.AntiForgeryToken()
                    <div style="height:20px;background-color:silver;text-align:center;">收文登记信息</div>
                    <div class="from-content">
                        <dl>
                            <dt>登记编号</dt>
                            <dd>
                                @Html.EditorFor(m => m.REG_ID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>收文单位</dt>
                            <dd>
                                @Html.EditorFor(m => m.RECEIVE_UNIT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>签收人</dt>
                            <dd>
                                @Html.EditorFor(m => m.RECEIVER_NAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>收文时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.RECEIVE_TIME, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>内容摘要</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.REMARK, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>拟办意见</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.COMMENT, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                    </div>
                    <div style="height:20px;background-color:silver;text-align:center;">发文信息</div>
                    <div class="from-content">
                        <dl>
                            <dt>文号</dt>
                            <dd>
                                @Html.EditorFor(m => m.official_document.DOC_NUM, new { htmlAttributes = new { @class = "input normal form-control", disabled = "disabled" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>公文标题</dt>
                            <dd>
                                @Html.EditorFor(m => m.official_document.SUBJECT, new { htmlAttributes = new { @class = "input normal form-control", disabled = "disabled" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>紧急程度</dt>
                            <dd>
                                <div class="rule-single-select">
                                    @Html.DropDownList("URGENT_LEVEL", ViewBag.URGENT_LEVEL_LIST as IEnumerable<SelectListItem>, new { @class = "form-control", disabled = "disabled" })
                                </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>秘密等级</dt>
                            <dd>
                                <div class="rule-single-select">
                                    @Html.DropDownList("SECRET_LEVEL", ViewBag.SECRET_LEVEL_LIST as IEnumerable<SelectListItem>, new { @class = "form-control", disabled = "disabled" })
                                </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>发文页数</dt>
                            <dd>
                                @Html.TextBoxFor(m => m.official_document.DOC_PAGE_COUNT, new { @class = "input normal form-control", disabled = "disabled" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>拟稿单位</dt>
                            <dd>
                                @Html.EditorFor(m => m.official_document.DRAFT_UNIT, new { htmlAttributes = new { @class = "input normal form-control", disabled = "disabled" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>拟稿人</dt>
                            <dd>
                                @Html.EditorFor(m => m.official_document.DRAFT_AUTHOR, new { htmlAttributes = new { @class = "input normal form-control", disabled = "disabled" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>主送</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.official_document.RED_HEAD_RECEIVE_UNITS, new { @class = "input normal form-control", disabled = "disabled" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>抄送</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.official_document.RED_HEAD_CC, new { @class = "input normal form-control", disabled = "disabled" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>文件类别</dt>
                            <dd>
                                <div class="rule-single-select">
                                    @Html.DropDownListFor(m => m.official_document.DOC_CATEGORY, ViewBag.DOC_CATEGORY_LIST as IEnumerable<SelectListItem>, new { @class = "form-control", disabled = "disabled" })
                                </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>使用模板</dt>
                            <dd>
                                <div class="rule-single-select" disabled>
                                    @Html.DropDownListFor(m => m.official_document.TEMPLATE, ViewBag.TEMPLATE_LIST as IEnumerable<SelectListItem>, new { @class = "form-control", disabled = "disabled" })
                                </div>
                            </dd>
                        </dl>
                        @Html.HiddenFor(m => m.RECEIVE_ID)
                        @Html.HiddenFor(m => m.DOC_ID)
                        @Html.HiddenFor(m => m.RECEIVER_USER_NO)
                        @Html.HiddenFor(m => m.CREATE_TIME)
                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                签收
                            </a>
                        </div>
                    </div>
                }
            </div>
                </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>

    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/uploader.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#form").initValidform();
        });
        function savefrom() {
            $("#form").submit();
            layer.msg('签收成功！', {
                icon: 1,
                time: 2000//2s后自动关闭
            }, function () {
                parent.subcloseTab('1202');
            });
        }
    </script>

}